﻿using System;
using TMPro;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;


public class RewardItem : MonoBehaviour
{
    public Image iconImage;
    public TextMeshProUGUI valueText;

    public RewardType rewardType;
    public int value;

    public CardPair[] cardPairs;

    public RewardManager rewardManager;
    
    public void SetRewardData(RewardPair rewardPair)
    {
        valueText.SetText(rewardPair.valueText);
            
        value = rewardPair.value;
        cardPairs = rewardPair.cardPairs;
        rewardType = rewardPair.rewardType;

        iconImage.sprite = rewardPair.iconImage;
    }
}

public enum RewardType
{
    Money,
    Card,
    Relic
}
